package com.david.vo;

import lombok.Data;

/**
 * @author David
 */
@Data
public class CardBean {

    private Integer code;

    private String msg;

    private Integer count;

    private Object data;

    public void success(Object data){
        this.code = 0;
        this.msg = "获取数据成功！";
        this.data = data;
    }

    public void fail(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
